package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zg = new Student();
        zg.name = "张光";
        zg.age = 25;
        zg.address = "廊坊";
        zg.className = "jsd2403";
        zg.stuId = "001";
        zg.eat();
        zg.sleep();
        zg.sayHi();
        zg.study();
        System.out.println("--------------------------------------------------------------");
        Student ll = new Student("李林", 21, "北京", "jsd2403", "002");
        ll.eat();
        ll.sleep();
        ll.sayHi();
        ll.study();
        System.out.println("--------------------------------------------------------------");
        Teacher zl = new Teacher("赵亮", 30, "河北", 5000.0);
        zl.eat();
        zl.sleep();
        zl.sayHi();
        zl.teach();
        System.out.println("--------------------------------------------------------------");
        Doctor wpf = new Doctor("王鹏飞", 45, "山西", "主任");
        wpf.eat();
        wpf.sleep();
        wpf.sayHi();
        wpf.cut();


    }
}
